/**
 * 
 */
package stc.skymobi.business;

import stc.skymobi.bean.kv.annotation.KeyValueAttribute;

/**
 * @author hp
 *
 */
public class DefaultMobileBean {
    
    @KeyValueAttribute(key="hsman")
    private String  hsman;
    
    @KeyValueAttribute(key="hstype")
    private String  hstype;
    
    @KeyValueAttribute(key="hswidth")
    private int     hswidth;
    
    @KeyValueAttribute(key="hsheight")
    private int     hsheight;
    
    @KeyValueAttribute(key="ramSize")
    private int     ramSize;
    
    @KeyValueAttribute(key="hsplat")
    private String  hsplat;
    
    @KeyValueAttribute(key="portingVer")
    private int     portingVer;
    
    
    @KeyValueAttribute(key="imsi")
    private String  imsi;
    
    @KeyValueAttribute(key="imei")
    private String  imei;
    
    @KeyValueAttribute(key="smsCenter")
    private String  smsCenter;
    
    @KeyValueAttribute(key="lac")
    private String  lac;
    
    @KeyValueAttribute(key="cellId")
    private String  cellId;
    
    @KeyValueAttribute(key="mcc")
    private String  mcc;
    
    @KeyValueAttribute(key="mnc")
    private String  mnc;
    
    @KeyValueAttribute(key="networkId")
    private String  networkId;

    /**
     * @return the hsman
     */
    public String getHsman() {
        return hsman;
    }

    /**
     * @param hsman the hsman to set
     */
    public void setHsman(String hsman) {
        this.hsman = hsman;
    }

    /**
     * @return the hstype
     */
    public String getHstype() {
        return hstype;
    }

    /**
     * @param hstype the hstype to set
     */
    public void setHstype(String hstype) {
        this.hstype = hstype;
    }

    /**
     * @return the hswidth
     */
    public int getHswidth() {
        return hswidth;
    }

    /**
     * @param hswidth the hswidth to set
     */
    public void setHswidth(int hswidth) {
        this.hswidth = hswidth;
    }

    /**
     * @return the hshegith
     */
    public int getHsheight() {
        return hsheight;
    }

    /**
     * @param hshegith the hshegith to set
     */
    public void setHsheight(int hshegith) {
        this.hsheight = hshegith;
    }

    /**
     * @return the ramSize
     */
    public int getRamSize() {
        return ramSize;
    }

    /**
     * @param ramSize the ramSize to set
     */
    public void setRamSize(int ramSize) {
        this.ramSize = ramSize;
    }

    /**
     * @return the hsplat
     */
    public String getHsplat() {
        return hsplat;
    }

    /**
     * @param hsplat the hsplat to set
     */
    public void setHsplat(String hsplat) {
        this.hsplat = hsplat;
    }

    /**
     * @return the portingVer
     */
    public int getPortingVer() {
        return portingVer;
    }

    /**
     * @param portingVer the portingVer to set
     */
    public void setPortingVer(int portingVer) {
        this.portingVer = portingVer;
    }

    /**
     * @return the imsi
     */
    public String getImsi() {
        return imsi;
    }

    /**
     * @param imsi the imsi to set
     */
    public void setImsi(String imsi) {
        this.imsi = imsi;
    }

    /**
     * @return the imei
     */
    public String getImei() {
        return imei;
    }

    /**
     * @param imei the imei to set
     */
    public void setImei(String imei) {
        this.imei = imei;
    }

    /**
     * @return the smsCenter
     */
    public String getSmsCenter() {
        return smsCenter;
    }

    /**
     * @param smsCenter the smsCenter to set
     */
    public void setSmsCenter(String smsCenter) {
        this.smsCenter = smsCenter;
    }

    /**
     * @return the lac
     */
    public String getLac() {
        return lac;
    }

    /**
     * @param lac the lac to set
     */
    public void setLac(String lac) {
        this.lac = lac;
    }

    /**
     * @return the cellId
     */
    public String getCellId() {
        return cellId;
    }

    /**
     * @param cellId the cellId to set
     */
    public void setCellId(String cellId) {
        this.cellId = cellId;
    }

    /**
     * @return the mcc
     */
    public String getMcc() {
        return mcc;
    }

    /**
     * @param mcc the mcc to set
     */
    public void setMcc(String mcc) {
        this.mcc = mcc;
    }

    /**
     * @return the mnc
     */
    public String getMnc() {
        return mnc;
    }

    /**
     * @param mnc the mnc to set
     */
    public void setMnc(String mnc) {
        this.mnc = mnc;
    }

    /**
     * @return the networkId
     */
    public String getNetworkId() {
        return networkId;
    }

    /**
     * @param networkId the networkId to set
     */
    public void setNetworkId(String networkId) {
        this.networkId = networkId;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((cellId == null) ? 0 : cellId.hashCode());
        result = prime * result + hsheight;
        result = prime * result + ((hsman == null) ? 0 : hsman.hashCode());
        result = prime * result + ((hsplat == null) ? 0 : hsplat.hashCode());
        result = prime * result + ((hstype == null) ? 0 : hstype.hashCode());
        result = prime * result + hswidth;
        result = prime * result + ((imei == null) ? 0 : imei.hashCode());
        result = prime * result + ((imsi == null) ? 0 : imsi.hashCode());
        result = prime * result + ((lac == null) ? 0 : lac.hashCode());
        result = prime * result + ((mcc == null) ? 0 : mcc.hashCode());
        result = prime * result + ((mnc == null) ? 0 : mnc.hashCode());
        result = prime * result
                + ((networkId == null) ? 0 : networkId.hashCode());
        result = prime * result + portingVer;
        result = prime * result + ramSize;
        result = prime * result
                + ((smsCenter == null) ? 0 : smsCenter.hashCode());
        return result;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (!(obj instanceof DefaultMobileBean))
            return false;
        final DefaultMobileBean other = (DefaultMobileBean) obj;
        if (cellId == null) {
            if (other.cellId != null)
                return false;
        } else if (!cellId.equals(other.cellId))
            return false;
        if (hsheight != other.hsheight)
            return false;
        if (hsman == null) {
            if (other.hsman != null)
                return false;
        } else if (!hsman.equals(other.hsman))
            return false;
        if (hsplat == null) {
            if (other.hsplat != null)
                return false;
        } else if (!hsplat.equals(other.hsplat))
            return false;
        if (hstype == null) {
            if (other.hstype != null)
                return false;
        } else if (!hstype.equals(other.hstype))
            return false;
        if (hswidth != other.hswidth)
            return false;
        if (imei == null) {
            if (other.imei != null)
                return false;
        } else if (!imei.equals(other.imei))
            return false;
        if (imsi == null) {
            if (other.imsi != null)
                return false;
        } else if (!imsi.equals(other.imsi))
            return false;
        if (lac == null) {
            if (other.lac != null)
                return false;
        } else if (!lac.equals(other.lac))
            return false;
        if (mcc == null) {
            if (other.mcc != null)
                return false;
        } else if (!mcc.equals(other.mcc))
            return false;
        if (mnc == null) {
            if (other.mnc != null)
                return false;
        } else if (!mnc.equals(other.mnc))
            return false;
        if (networkId == null) {
            if (other.networkId != null)
                return false;
        } else if (!networkId.equals(other.networkId))
            return false;
        if (portingVer != other.portingVer)
            return false;
        if (ramSize != other.ramSize)
            return false;
        if (smsCenter == null) {
            if (other.smsCenter != null)
                return false;
        } else if (!smsCenter.equals(other.smsCenter))
            return false;
        return true;
    }
}
